/****
author: hqx
date: 2018/11/7
***/

export default {
	set(key, objJson) {
		localStorage.setItem(key, JSON.stringify(objJson));
	},

	get: key => {
		let val = localStorage.getItem(key);
		return JSON.parse(val);
	},

	clear: key => {
		localStorage.setItem(key, "");
	}
};